import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
//引入mockServe.js  使用一下
import '@/mock/mockServe'
//引入swiper 的css样式
import 'swiper/css/swiper.min.css'



//将TypeNav 全局注册
import TypeNav from "@/components/TypeNav/TypeNav.vue";
Vue.component(TypeNav.name, TypeNav)
  //将分页器全局注册一下
import Pagination from '@/components/Pagination'
Vue.component(Pagination.name, Pagination)

Vue.config.productionTip = false


new Vue({
  router,
  store,
  render: h => h(App),
  beforeCreate() {
    //注册全局事件总线
    Vue.prototype.$bus = this
  },
  mounted() {

  }

}).$mount('#app')